﻿#ifndef TEXTSETTINGDLG_H
#define TEXTSETTINGDLG_H

#include <QDialog>

namespace Ui {
class TextSettingDlg;
}

enum CBType{
    V_TOP,
    V_CENTER,
    V_BOTTOM,
    V_CUSTOM,

    H_CENTER,
    H_LEFT,
    H_RIGHT,
    H_CUSTOM
};

class TextSettingDlg : public QDialog
{
    Q_OBJECT

public:
    explicit TextSettingDlg(QWidget *parent = 0);
    ~TextSettingDlg();

    QFont textFont() const;

    QColor color() const;

    QPoint point() const;

    QString text() const;

    void showFontInfo();

    CBType VType() const;

    CBType HType() const;

private slots:
    void on_pb_font_clicked();

    void on_cb_h_currentIndexChanged(int index);

    void on_cb_v_currentIndexChanged(int index);

    void on_pb_color_clicked();

private:
    Ui::TextSettingDlg *ui;

    QFont m_font;
    QColor m_color = Qt::black;
    CBType m_VType = V_TOP;
    CBType m_HType = H_CENTER;
};

#endif // TEXTSETTINGDLG_H
